package com.jiepu.homework.module5.exercise4;

public class Rectangle extends Shape {

	double height;
	double width;

	public Rectangle() {
		this(1.0, 1.0);
	}

	public Rectangle(double height, double width) {
		this(0, 0, height, width);
	}

	public Rectangle(int x, int y, double height, double width) {
		super(x, y);
		this.height = height;
		this.width = width;
	}

	public void draw() {
		System.out.println("draw in rectangle：" + x + "," + y + "," + height + "," + width);
	}

}
